﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SignalShopBase;

namespace TestModule
{
    public class MirrorModule : SignalShopModule
    {
        public MirrorModule() : base(NAME, PATH) {}

        public override void Execute(Signal target, Signal source)
        {
            int N = target.N;
            Complex c = new Complex();

            for (int n = 1; n <= N; n++)
            {
                c.Set(target[n]);
                target[n].Set(target[-n]);
                target[-n].Set(c);
            }
        }

        private const string NAME = "Mirror";
        private const string PATH = "Transform/Mirror";
    }
}
